<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="admin_header.jsp"%>
<script type="text/javascript" src="<c:url value="/js/jquery.pagination.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/common.page.js"/>"></script>
<%@ include file="admin_container.jsp"%>

<img src="../images/admin/logo.jpg" />
<div id="content">
<%@ include file="admin_nav.jsp"%>
<div id="right">
<h1 class="topmenu" >查看所有博客</h1>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th width="25" height="29" scope="col">#</th>
		<th width="165" scope="col">标题</th>
		<th width="102" scope="col">作者</th>
		<th width="83" scope="col">创建时间</th>
		<th width="85" scope="col">修改时间</th>
		<th width="69" scope="col">分类</th>
		<th width="39" scope="col">&nbsp;</th>
    	<th width="62" scope="col"></th>
	</tr>
	<c:forEach var="article" items="${articleList}" varStatus="status">
		<tr class="member">
			<td height="20" align="center">${ status.count}</td>
			<td align="center"><a
				href="<c:url value="/administrator/blog.htm"><c:param name="method" value="displayOne"/><c:param name="articleID" value="${article.articleID }"/></c:url>"
				target="_blank">${article.title}</a></td>
			<td align="center">${article.author}</td>
			<td align="center"><fmt:formatDate value="${article.createdDate}" type="date"
				pattern="yyyy-MM-dd"></fmt:formatDate></td>
			<td align="center"><fmt:formatDate value="${article.modifiedDate}" type="date"
				pattern="yyyy-MM-dd"></fmt:formatDate></td>
			<td align="center"><a
				href="<c:url value="/administrator/blog.htm"><c:param name="method" value="displayForm"/><c:param name="articleID" value="${article.articleID }"/></c:url>">编辑</a></td>
			<td align="center"><a
				href="<c:url value="/administrator/blog.htm"><c:param name="method" value="delete"/><c:param name="articleID" value="${article.articleID }"/></c:url>">删除</a></td>
		</tr>
	</c:forEach>
</table>
<div id="pagination" class="pagination"></div>
<input type="hidden" id="totalEntries" value="${totalArticleCount}"/>
</div>
</div>
<%@ include file="admin_footer.jsp"%>